package com.pet.server.po;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Constant entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "constant_ui")
public class ConstantUi implements java.io.Serializable {

	// Fields
	
	private Integer id;
	private String uiName;//名称
	private Integer constantId;//常量表对应id
	private String imgPath;//图片
	private String colorValue;//色值
	private String petBreeds;//宠物类型
	private String petCate;//分类类型
	private String petImport;//进口类型
	private String pcode;
	private String code;
	private Integer lev;

	private List<ConstantUi> list = new ArrayList<ConstantUi>();

	
	
	// Constructors
	@Transient
	public List<ConstantUi> getList() {
		return list;
	}

	public void setList(List<ConstantUi> list) {
		this.list = list;
	}

	/** default constructor */
	public ConstantUi() {
	}

	/** full constructor */
	public ConstantUi(Integer id, String uiName, Integer constantId,
			String imgPath, String colorValue, String petBreeds,
			String petCate, String petImport,String pcode,Integer lev,String code) {
		super();
		this.id = id;
		this.uiName = uiName;
		this.constantId = constantId;
		this.imgPath = imgPath;
		this.colorValue = colorValue;
		this.petBreeds = petBreeds;
		this.petCate = petCate;
		this.petImport = petImport;
		this.pcode = pcode;
		this.code = code;
		this.lev = lev;
		
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "ui_name", length = 20)
	public String getUiName() {
		return uiName;
	}

	public void setUiName(String uiName) {
		this.uiName = uiName;
	}
	@Column(name = "constant_id")
	public Integer getConstantId() {
		return constantId;
	}

	public void setConstantId(Integer constantId) {
		this.constantId = constantId;
	}

	@Column(name = "color_value", length = 128)
	public String getColorValue() {
		return colorValue;
	}

	public void setColorValue(String colorValue) {
		this.colorValue = colorValue;
	}
	
	@Column(name = "pet_breeds", length = 512)
	public String getPetBreeds() {
		return petBreeds;
	}

	public void setPetBreeds(String petBreeds) {
		this.petBreeds = petBreeds;
	}

	@Column(name = "pet_cate", length = 128)
	public String getPetCate() {
		return petCate;
	}

	public void setPetCate(String petCate) {
		this.petCate = petCate;
	}

	@Column(name = "pet_import", length = 128)
	public String getPetImport() {
		return petImport;
	}

	public void setPetImport(String petImport) {
		this.petImport = petImport;
	}

	@Column(name = "img_path", length = 512)
	public String getImgPath() {
		return this.imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}
	@Column(name = "pcode", length = 20)
	public String getPcode() {
		return pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}
	
	@Column(name = "lev", length = 11)
	public Integer getLev() {
		return lev;
	}

	public void setLev(Integer lev) {
		this.lev = lev;
	}
	
	@Column(name = "code", length = 20)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
	
}